package com.ksd.modules.course.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.ksd.commons.AbstractTimeEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.experimental.SuperBuilder;

@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("xk_course_chapter")
@SuperBuilder(toBuilder = true)
@ApiModel(value = "AdminCourseChapter", description = "课程章")
public class AdminCourseChapter extends AbstractTimeEntity {
    @ApiModelProperty("章节所属课程id")
    private Long courseId;
    @ApiModelProperty("章节名称")
    private String title;
    @ApiModelProperty("章节排序")
    private Integer sorted;
    @ApiModelProperty("总时长")
    private String totalTime;
    @ApiModelProperty("课程标题")
    private String courseTitle;

    public static class Columns {
        public static String IS_DELETED = "is_deleted";
        public static String STATUS = "status";
    }
}
